package com.briup.pts.service;

import com.briup.pts.domain.bean.FenceHouse;
import com.briup.pts.domain.vo.FenceWithHurdles;
import com.github.pagehelper.PageInfo;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;

import java.util.List;

/**
 * @author wy
 * @description
 * @data 2024/11/27  9:14
 */
public interface FenceHouseService {
    PageInfo<FenceHouse> pageQueryByCondition(@NotNull(message = "分页参数不能为空") @Min(value = 1L, message = "当前页面不能小于1") Integer pageNum, @Min(value = 1L, message = "页面大小不能小于1") @NotNull(message = "分页参数不能为空") Integer pageSize, String fhName);

    FenceWithHurdles selectById(String fhId);

    void saveOrUpdate(FenceHouse fenceHouse);

    void deleteById(String fhId);

    void deleteByIdAll(@NotEmpty(message = "没有要删除的质检报告") List<String> ids);
}
